﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_ProductImages : System.Web.UI.UserControl
{
    public static string productid = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
                      
        }
        if (Request.QueryString["ProductID"] != null)
        {
            productid = Request.QueryString["ProductID"];

        } 

        if (!string.IsNullOrEmpty(productid))
        {
            dtlImages.DataSource = dmsFunction.getProductImagesbyProductID(int.Parse(productid));
            dtlImages.DataBind();
        }
        
    }

    protected string GetLoginPostBack()
    {
        return Page.ClientScript.GetPostBackEventReference(btnpob, string.Empty);
    }
}